package cn.sofwin.blog.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体
 * @author zx
 * @since 1.0
 *
 */
public class Article implements Serializable {

	/**  */
	private User user;

	/** 主键ID */
	private Integer id;

	/** 标题 */
	private String title;

	/** 摘要 */
	private String summary;

	/** 内容 */
	private String content;

	/** 发表时间 */
	private Date addTime;

	/** 阅读总数 */
	private Integer readTotal;

	/** 评论总数 */
	private Integer commentTotal;

	/** 状态：-1，删除；0，隐藏；1，正常 */
	private Integer status;

	public Article() {
	}

	public Article(Integer id) {
		this.id = id;
	}
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getSummary() {
		return this.summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}
	
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public Date getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	
	public Integer getReadTotal() {
		return this.readTotal;
	}

	public void setReadTotal(Integer readTotal) {
		this.readTotal = readTotal;
	}
	
	public Integer getCommentTotal() {
		return this.commentTotal;
	}

	public void setCommentTotal(Integer commentTotal) {
		this.commentTotal = commentTotal;
	}
	
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
}